<?php
/**
 * @filename SimpleTest.php
 * @author LD King
 * @encoding UTF-8
 * @date 2008-9-19 | 下午05:45:33
 * @package 
 * @subpackage 
 * @usage 简单的测试
 * @note  测试数组的循环
 * @copyright Copyright (c) 2007 - 2008 LD (http://mifunny.info)
 * @version $Id: $
 */


class arr {
	public $va;
	
	public function __construct($va) {
		$this->va = $va;
	}
	
	public function display(){
		echo "<br />$this->va";
	}
}


$arr1 = array(new arr('1'), 
			new arr('2'),
			new arr('3'),
			new arr('4'),
			new arr('5'),);
			
$arr2 = array(new arr('71'),
			new arr('72'),
			new arr('73'),
			new arr('74'),
			new arr('75'),);
			
array_push($arr1,$arr1);

foreach ($arr1 as $key => $value) {
	$value->display();
}


?>